﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using HCommon;

namespace eStock.hControl
{
    public partial class hComboBox : ComboBox
    {
        public hComboBox()
        {
            InitializeComponent();
        }

        public hComboBox(IContainer container)
        {
            container.Add(this);
            InitializeComponent();            
        }

        protected bool hNotEmpty = false;
        [Category("1-HCOM"), DefaultValue(false), Description("Kiểm tra trống")]
        public bool NotEmpty
        {
            get { return hNotEmpty; }
            set { hNotEmpty = value; }
        }

        protected string hFBCode;
        [Category("1-HCOM"), DefaultValue(""), Description("Mã Find Box. Chỉ áp dụng được với hForm")]
        public string FBCode
        {
            get { return hFBCode; }
            set
            {
                if (value == null)
                {
                    return;
                }
                hFBCode = value;
            }
        }
    }
}
